Jx.declare('Jx.platform.browser.dom.Node', {

	$extend: 'Jx.lib.View',
	
	$helpers: {
		
		'Dom': 'Jx.platform.browser.lib.Dom'
		
	},

	engine: undefined,
	
	defaultView: undefined,
	
	node: undefined,

	eventDispatcherClass: 'Jx.platform.browser.event.Dispatcher',
	
	engineClass: 'Jx.lib.Engine', //-- should change!

	constructor: function(dom){

		if ( !this.isValidNode(dom) ){
			
			throw Jx.createError('type', 'invalid node argument [', dom, ']');
			
		} else {

			this.node = dom;

			this.$super(
				
				Array.prototype.slice.call(arguments, 1)
				
			);

		}

	},

	isValidNode: function(node){
		
		return this.$Dom.isDom(node);
		
	}




});
